package org.example.infrastructure.common;

import java.math.BigDecimal;

/**
 * @author liyishan
 * @date 2023/5/8 15:14
 * @apiNote
 */

public class Constants {
    public static final int    RESULT_TYPE_SUCCESS          = 0;
    public static final int    RESULT_TYPE_FAILURE          = 1;
    public static final int    RESULT_TYPE_SUSPEND          = 2;
    public static final String RESULT_MSG_SUCCESS           = "success";
    public static final String RESULT_MSG_FAILURE           = "failure";
    public static final String RESULT_MSG_NOT_FUND          ="未查询到合同详情";
    /** 时间格式 yyMMdd.*/
    public static final String DATE_YYMMDD6DIGIT = "yyMMdd";

    /** 时间格式 yyyyMMdd.*/
    public static final String DATE_YYMMDD8DIGIT = "yyyyMMdd";

    /** 预约签单，时段步长 **/
    public static final int STEP = 30;

    /** 10000 **/
    public static final BigDecimal TEN_THOUSAND = new BigDecimal("10000");

    /** 100 **/
    public static final BigDecimal ONE_HUNDRED = new BigDecimal("100");

    /** 1位小数 **/
    public static final int ONE_SCALE = 1;

    /** 2位小数 **/
    public static final int TWO_SCALE = 2;

    /** 4位小数 **/
    public static final int FOUR_SCALE = 4;

    /** 30天 **/
    public static final int THIRTY_DAYS = 30;

    /** 29天 **/
    public static final int TWENTY_NINE_DAYS = 29;

    public static final String DOU_HAO = ",";

}
